package org.airline.dao;

import java.util.List;

import org.airline.entity.OrderItem;
import org.airline.entity.PageBean;

public interface IOrderItemDao {

	// 持久化订单
	public void saveOrderItem(OrderItem orderItem) throws Exception;
	
	// 取消订单
	public void deleteOrderItem(Long id) throws Exception;
	
	// 修改数量
	public void updateOrderItem(OrderItem orderItem) throws Exception;
	
	// 分页查询所有订单
	public PageBean queryForPage(int pageSize, int page) throws Exception;

	// 根据用户ID分页查询订单
	public PageBean queryForPageByUserId(int id, int pageSize, int page) throws Exception;
	
	// 通过ID查询订单
	public OrderItem getorderItemById(Long id) throws Exception;
	
	// 根据关键字分页查询
	public PageBean queryForPageByKeyWords(int keyWord, int pageSize,
			int page) throws Exception;
	
//	public List findByIds(Integer[] ids) throws Exception;
	
}
